/**
 * 
 */
package chatsystem;

/**
 * @author Thibaut POUZET
 *
 */
public class ListContacts {

	private CollectionContactTarget c;
	/**
	 * 
	 */
	public ListContacts(CollectionContactTarget c) {
		this.c = c;
	}
	
	public void addContact(Contact contact) {
		c.add(contact);
	}
	
	public void removeContact(String nname) {
		c.remove(nname);
	}
	
	public void removeAllContacts() {
		c.removeAll();
	}
	
	public Contact getContact(String nname) {
		return c.get(nname);
	}
	
	public Contact getContactByAddress(String address) {
		
	}
}
